package com.huzz.util.desin.flyweight;

class Train {
    private final String name;
    private final int capacity;

    public Train(String name, int capacity) {
        this.name = name;
        this.capacity = capacity;
    }
    public String getName() {
        return name;
    }
    public int getCapacity() {
        return capacity;
    }
}